﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BoriPeter.FatSecret.Converters
{
    public static class IntegerToDateConverter
    {
        public static DateTime ConvertToDate(this int _daysSince1970)
        {
            DateTime date = new DateTime(1970, 1, 1);
            date = date.AddDays(_daysSince1970);
            return date;
        }
    }
}
